//
// Created by dddgzc on 2025/2/5.
//

#ifndef SUNBULLET_H
#define SUNBULLET_H
#include "Atlas.h"
#include "Animation.h"
#include "Bullet.h"

extern Atlas* sunAtlas;
extern Atlas* sunExplodeAtlas;
extern bool IS_DEBUG_MODE;

class SunBullet : public Bullet{
public:
    SunBullet();
    ~SunBullet();
private:
    void onCollide() override;
    void onUpdate(int delta) override;
    void onDraw(const Camera& camera) override;
private:
    Animation animationIdle;
    Animation animationExplode;
    Vector2 explodeRenderOffset; // 爆炸和idle状态的纹理尺寸不同所以需要偏移一段距离
    const float gravity = 1e-3f; // 日光炸弹的重力加速度
};



#endif //SUNBULLET_H
